package com.reeygu.entity;


import java.util.Map;

/**
 * @describe: 一个通用的实体类，先预留，后面有空再做
 * @author: ReeyGu
 * @data: 2024/3/27 17:37
*/
public class FTL {
    private Map<String, Object> map;
    private Object data;

    public void addData(Datas... datas) {
        for (Datas item : datas) {
            this.map.put(item.getName(), item.getValue());
        }
    }

    public Object getEntity() throws ClassNotFoundException {
        if(data != null) {
            return data;
        }
        String clazzName = "com.reeygu.entity.BaseClazz";
        Class<?> clazz = Class.forName(clazzName);
        for (Map.Entry<String, Object> item : map.entrySet()) {
            item.getKey();
        }
        return clazz;
    }
}
